package com.droowa.model.service;

import java.sql.SQLException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;






import com.droowa.domain.ExchangeManagement;
import com.droowa.domain.RefundManagement;
import com.droowa.model.dao.RefundManagementDAO;

@Service
public class RefundManagementServiceImpl implements RefundManagementService{
	
	@Autowired
	private RefundManagementDAO dao;
	
	@Override
	public int joinRefundManagement(RefundManagement refundManagement) throws SQLException {
		return dao.insertRefundManagement(refundManagement);
	}

	@Override
	public int removeRefundManagement(String orderNumber) throws SQLException {
		return dao.deleteRefundManagement(orderNumber);
	}

	@Override
	public int modifyRefundManagement(RefundManagement refundManagement) throws SQLException {
		return dao.updateRefundManagement(refundManagement);
	}

	@Override
	public List getRefundManagementByAll(HashMap map) throws SQLException {
		List<RefundManagement> list = dao.selectRefundManagementByAll(map);
		return list;
	}
}
